package com.quartz.springbootquartz.simple;

import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.SchedulerFactory;
import org.quartz.impl.StdSchedulerFactory;

/**
 * @description 测试从Factory中拿出的Scheduler是否是一样的
 * @Author longdeng
 * @Date 2020/7/27 0027 23:19
 */
public class JobDemo4 {


    public static void main(String[] args) throws SchedulerException {

        SchedulerFactory schedulerFactory = new StdSchedulerFactory();

        Scheduler s1 = schedulerFactory.getScheduler();

        Scheduler s2 = schedulerFactory.getScheduler();

        System.out.println(s1 == s2);

    }

}
